// my-component.js
import { ref } from 'vue'
export default {
  setup() {
    const count = ref(0)
    return { count }
  },
  methods: {
    add() {
      this.count++
    }
  },
  template: `<div>count is {{ count }} <button @click="add">add</button></div>`
}